package sample.innerCls;

interface Foo {
	void foo();
}

class Bar {
	void doStuf(Foo f) {
		f.foo();
	}
}

public class BarCls {
	static void go() {
		Bar b = new Bar();
		b.doStuf(new Foo() {

			@Override
			public void foo() {
				System.out.println("footy");

			}

		});
	}
	
	public static void main(String[] args){
		go();
	}

}
